package org.budo.weixin.message;

import java.util.HashMap;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author ZRP
 * @version 1 (2015年11月23日下午2:56:45)
 * @since Java7
 */
@Getter
@Setter
@ToString
public class TemplateMessage extends Message {
    private static final long serialVersionUID = -3244548735358885909L;

    public String getType() {
        return MessageType.TEMPLATE;
    }

    private String templateId;

    private String url;

    private Map<String, TemplateData> templateValues = new HashMap<String, TemplateData>();

    public void setTemplateValue(String key, TemplateData value) {
        this.templateValues.put(key, value);
    }
}